package com.yanyeori.webtest.config.http;

import com.yanyeori.framework.web.http.request.resttemplate.RestClientHttpRequestInterceptor;
import com.yanyeori.nacosfeign.context.AContextHolder;
import org.springframework.stereotype.Component;

import java.util.Collection;

/**
 * @author chenkuan
 * @since 2021/8/2 002 18:43
 */
@Component
public class WebRestRequest extends RestClientHttpRequestInterceptor {

    @Override
    public Collection<Object> getContext() {
        Collection<Object> objects = super.getContext();
        objects.add(AContextHolder.getAContext());
        return objects;
    }
}
